function createamxy(boundx,boundy,datas,markx,marky,position,labely,labelx){
	var bound = "<graph gid='0' min_max='false' color='#000000' fill_color='#00CC00' fill_alpha='20'>" +
			"<point x='0' y='0'></point>" +
			"<point x='0' y='"+boundy+"'></point>" +
			"<point x='"+boundx+"' y='"+boundy+"'></point>" +
			"<point x='"+boundx+"' y='0'></point>" +
			"<point x='0' y='0'></point>" +
		"</graph>" +
		"<graph gid='0' min_max='false' color='#000000' fill_color='#CC0000' fill_alpha='20'>" +
			"<point x='"+boundx+"' y='"+boundy+"'></point>" +
			"<point x='"+boundx+"' y='"+(3*boundy)+"'></point>" +
			"<point x='"+(3*boundx)+"' y='"+(3*boundy)+"'></point>" +
			"<point x='"+(3*boundx)+"' y='"+boundy+"'></point>" +
			"<point x='"+boundx+"' y='"+boundy+"'></point>" +
		"</graph>";
	
	var graph = "<graph gid='0' alpha='0' balloon_text='{description}\n\n 访客:{x}  下单:{value}  转化:{y}%25'  bullet='bubble' color='#CC0000'>" +
			datas + "</graph>";
	var chart = "<?xml version='1.0' encoding='UTF-8'?><chart><graphs>"+graph+"</graphs></chart>";
	
	var so = new SWFObject("/amxy/amxy.swf", "amxy", 860, 600, "8", "#FFFFFF");
	so.addParam("wmode", "transparent");
	so.addVariable("path", "/amxy/");
	so.addVariable("settings_file", encodeURIComponent("amxy_settings.xml"));
	so.addVariable("data_file", encodeURIComponent("amxy_data.xml"));
	so.addVariable("settings_file",
			encodeURIComponent("../amxy/amxy_settings.xml"));

	var unit = "<values><x><min>0</min><max>"+(2*boundx)+"</max><unit>"+markx+"</unit></x>" +
			"<y><min>0</min><max>"+(2*boundy)+"</max><unit>"+marky+"</unit></y></values>" +
			"<labels>" +
			"<label lid='0'><x>1</x><y>20</y><align>left</align><text_color>#780000</text_color><text_size>20</text_size>" +
			"<text><![CDATA[<b>"+labely+"</b>]]></text></label>" +
			"<label lid='1'><x>10</x><y>550</y><width>800</width><align>right</align><text_color>#780000</text_color><text_size>20</text_size>" +
			"<text><![CDATA[<b>"+labelx+"</b>]]></text></label>" +
			"</labels>";
	so
	.addVariable(
			"additional_chart_settings",
			"<settings>"+unit+"</settings>");
	
	so.addVariable("chart_data", chart);
	so.write(position);
}